﻿jQuery(function () {
    jQuery("body").append('<div class="modal fade" id="hex-mymodal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><img src="/Content/images/Loading.gif" /><lable>数据加载中......<lable></div></div></div></div>')
    jQuery('#hex-mymodal').modal({
        backdrop: false,
        show: false,
        remote: true,
        keyboard: true
    });
    jQuery('#hex-mymodal').css("top", "30%");
});

function Loading() {
    jQuery('#hex-mymodal').modal('show');
    jQuery("body").append('<div id="addModal" class="hex-mymodalshow modal-backdrop fade in"></div>');
    return;
}
function LoadingNoValid() {
    jQuery('#hex-mymodal').modal('show');
    jQuery("body").append('<div class="hex-mymodalshow modal-backdrop fade in"></div>');
}
function LoadingEnd() {
    jQuery('#hex-mymodal').modal('hide');
    jQuery('#addModal').remove();
}
function LoadingEndNoValid() {
    jQuery('#hex-mymodal').modal('hide');
    jQuery(".hex-mymodalshow").remove();
}
